package com.acwebsitedesign.uRateDrugs.domain;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Email;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.Range;

public class Account {

	private int id;
	@NotBlank
	private String username;
	@NotBlank
	private String password;
	@Email
	private String email;
	private String agreeToTerms;
	@Range(min = 1, max = 99999)
	private int zip;
	@Range(min = 1, max = 99)
	private int age;
	private boolean gender;
	
	
	public Account(){
	}
	
	public Account(String username, String password, String email, int zip, int age, boolean gender){
		this.username = username;
		this.password = password;
		this.email = email;
		this.zip = zip;
		this.age = age;
		this.gender = gender;
	}
	
	public Account(int id, String username, String password, String email, int zip, int age, boolean gender){
		this.username = username;
		this.password = password;
		this.email = email;
		this.zip = zip;
		this.age = age;
		this.gender = gender;
		this.id = id;
	}


	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getZip() {
		return zip;
	}

	public void setZip(int zip) {
		this.zip = zip;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public boolean isGender() {
		return gender;
	}

	public void setGender(boolean gender) {
		this.gender = gender;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAgreeToTerms() {
		return agreeToTerms;
	}

	public void setAgreeToTerms(String agreeToTerms) {
		this.agreeToTerms = agreeToTerms;
	}
	
}
